import Nav from './components/nav';
import RouterView from './components/router-view';
import { NAV_CONF } from './constants/conf';
import { Layout } from 'antd';
import routes from './router';

export default function () {
  return (
    <Layout className="app">
      <Layout.Sider>
        <Nav conf={ NAV_CONF } />
      </Layout.Sider>
      <Layout>
        <Layout.Header></Layout.Header>
        <Layout.Content>
          <RouterView routes={ routes } />
        </Layout.Content>
      </Layout>
    </Layout>
  );
}